package top.plgxs.quartz.service.impl.job;

import top.plgxs.quartz.entity.job.QuartzJob;
import top.plgxs.quartz.mapper.job.QuartzJobMapper;
import top.plgxs.quartz.service.job.QuartzJobService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 定时任务 服务实现类
 * </p>
 *
 * @author Stranger.
 * @since 2021-08-10
 * @version 1.0
 */
@Service
public class QuartzJobServiceImpl extends ServiceImpl<QuartzJobMapper, QuartzJob> implements QuartzJobService {
    @Resource
    private QuartzJobMapper quartzJobMapper;

    @Override
    public List<QuartzJob> getQuartzJobList() {
        return quartzJobMapper.selectQuartzJobList(null);
    }
}
